<div ng-controller="MjsCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'满就送'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/mjs/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"></span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'title'|translate}}</th>
                <th>{{'活动范围'|translate}}</th>
                <th>{{'优惠类型'|translate}}</th>
                <th>{{'活动类型'|translate}}</th>
                <th>{{'是否定向优惠'}}</th>
                <th>{{'num'|translate}}</th>
                <th>{{'剩余时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in mjs_list">
                <td>{{list.mjs_activity_id}}</td>
                <td>{{list.name}}</td>
                <td>{{list.ptype == 1?"全店":"部分商品"}}</td>
                <td>{{list.type_id == 1?"满件优惠":"满元优惠"}}</td>
                <td>{{list.mianyou == 1?"满减活动":"满包邮活动"}}</td>
                <td>{{list.h_type == 'mjs'?"否":"是"}}</td>
                <td>
                    {{list.ptype == 1?"-":list.item_count}}
                </td>
                <td>
                    {{list.diff_time}}
                </td>
                <td>
                    <a href="#/mjs/add?mjs_activity_id={{list.mjs_activity_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                    <!-- <button class="sui-btn btn-danger" ng-click="activityDelete(list.mjs_activity_id)">删除</button> -->
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>